const packageJson = require('../package.json');
const token = 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYXBpIl0sImNvcnBJZCI6bnVsbCwidXNlcl9pZCI6IjJjMmM4MDgzOGJiN2RlNmQwMThiYzY4OGE2OTkzZjQzIiwidXNlcl9uYW1lIjoiQ1dNMjEwMSIsInNjb3BlIjpbInJlYWQiXSwibW9iaWxlIjpmYWxzZSwiaXNBZG1pbiI6dHJ1ZSwiZXhwIjoxNzEwMjM2NTE3LCJpc0FwcEFkbWluIjpmYWxzZSwiYXV0aG9yaXRpZXMiOlsiVVNFUiIsIkFVVEhfU1lTVEVNX01BTkFHRSJdLCJqdGkiOiJmM2ZhMmI3NS04YzMxLTQ5MjQtOWM5NS04NGRhMDFlMzY2ZGIiLCJjbGllbnRfaWQiOiJhcGkifQ.Cg4zo9hl7XYRJEqGISX69wDEpPU-KZQDTizb0hrTBSA60gTxEY7hMHW0JTTvB-UYGu2XSwCML1co9rsGsUYCoAdD38jOXuxqWlnM7m5h8qRb_Ldg2JKa9Ri9iBdU2aAQ1WnUDYmknaq29iJCU-q9RNTs5H-gcvIiiUopUsWDzg8'
const setDevToken = () => {
    if(process.env.NODE_ENV === 'development') {
        localStorage.setItem('token', token);
    }
}

console.log(`%cfrontendVersion:${packageJson.version}`, 'color: green;font-size: 16px');

//设置开发环境token
module.exports = setDevToken;
